// 1. 利用泛型去约束函数
// function getLength(s: string) {
//     console.log(s.length);
// }
function getLength(s) {
    console.log(s.length);
}
var userName;
userName = '陈伟霆';
var obj;
obj = {
    name: '古力娜扎',
    age: 20
};
var arr;
arr = [
    { name: '易烊千玺', age: 20 },
    { name: '易烊千玺', age: 20 },
    { name: '易烊千玺', age: 20 }
];
